package com.tianji.remark.task;

import com.tianji.remark.service.ILikedRecordService;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;

//@Component
@RequiredArgsConstructor
public class LikedRecordSyncTask {
    private final ILikedRecordService likedRecordService;

    @Scheduled(fixedRate = 60000) // 每分钟同步一次
    public void syncLikedRecords() {
//        likedRecordService.syncLikedRecordsToDatabase();
    }
}